import { PlayAudio } from './play-audio';
import { LDCWarning } from './LDC-warning';
import { MessageBoxService } from './../messageBox/messageBoxService';
import { Message } from './../messageBox/confirmMessage';
import { MessageBoxContainer } from './../messageBox/MessageBoxContainer';
import { Confirm } from './confirm';
import { HostBinding } from '@angular/core';
import { Component, ElementRef, AfterViewInit, OnDestroy, OnChanges, Input, Output, SimpleChange, EventEmitter } from '@angular/core';
import { MessageResult } from './messageBox';
import { ViewBaseService } from "../viewBaseService";

@Component({
    selector: 'app-components',
    template: `
        <div class="app-components-container" >
            <play-audio></play-audio>
            <ldc-warning [status]="status"></ldc-warning>
        </div>
    `,
})
export class AppComponents {
    status: boolean = true;
    toggleLDCWarning(status) {
        this.status = status;
    }
}


export class AppComponentsService extends ViewBaseService {
    static current = new AppComponentsService();
    components = [PlayAudio,  LDCWarning];
    route = {
        path:"",
        component:AppComponents
    }
}